import request from '@/utils/request'

// 查询权限角色信息列表
export function getPermissionRoleList(params) {
  return request({
    url: '/admin/AuthorityManage/getPermissionRoleList',
    method: 'get',
    params
  })
}

// 异步查询权限角色权限模块
export function getPermissionRoleModule(data) {
  return request({
    url: '/admin/AuthorityManage/getPermissionRoleModule',
    method: 'post',
    data
  })
}

// 新增/修改权限角色信息
export function changePermissionRoleInfo(data) {
  return request({
    url: '/admin/AuthorityManage/changePermissionRoleInfo',
    method: 'post',
    data
  })
}

// 删除权限角色信息（逻辑删除）
export function deletePermissionRoleInfo(data) {
  return request({
    url: '/admin/AuthorityManage/deletePermissionRoleInfo',
    method: 'post',
    data
  })
}
